/*
 * @Author: ischen.x ischen.x@foxmail.com
 * @Date: 2024-07-25 17:04:20
 * @LastEditors: ischen.x ischen.x@foxmail.com
 * @LastEditTime: 2024-07-25 17:38:16
 * 
 * Copyright (c) 2024 by fhchengz, All Rights Reserved. 
 */
#include <stdio.h>
#include "cmdline.h"

#define CMDLINE_USER "chen@STM32F407: "

static int hello(int argc, char **argv) {
    printf("Hello World: argc: %d, argv[0]: %s\r\n", argc, argv[0]);
    return 0;
}

int main(void) {
    cmdline_new("hello", hello);
    cmdine_start(CMDLINE_USER);
    return 0;
}